﻿// ===============================================================================
//  Copyright © ymind.net. All rights reserved .
//  官方网站：http://ymind.net/
//  版权所有：彦铭工作室 老陈出品
// ===============================================================================

using System;
using Lcsoft.RssEngine.Shared;

namespace Lcsoft.RssEngine.RssItem
{
	/// <summary>Describes an items source</summary>
	[Serializable]
	public class RssSource : IRssElement
	{
		private string _name = String.Empty;
		private Uri _uri = RssDefault.UriValue;

		/// <summary>Name of the RSS channel that the item came from</summary>
		public string Name
		{
			get { return this._name; }
			set { this._name = RssDefault.Check(value); }
		}

		/// <summary>URL of the original RSS feed from which the item was republished</summary>
		public Uri Url
		{
			get { return this._uri; }
			set { this._uri = RssDefault.Check(value); }
		}
	}
}
